<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<SCRIPT LANGUAGE="">
function my_file() {
window.location= 'file:///' + document.read_file.ar_dates.value;
}
</script>
</head>
<form name="read_file"  method="post" action="Controller">   
<b>select a file:</B>
<br>
<input type="file" name=ar_dates>
<br>
<input type="button" name= button onClick="my_file()" value="Open File">
<input type=submit name=button value="Generate XML">
<br>
<br>
<% if(request.getAttribute("attribute1")!=null)
	out.print(request.getAttribute("attribute1"));%>
</form>
</body>
</html>